package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.SysMsgBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface SysMsgService extends BaseService<SysMsgBean> {

	SysMsgBean getSysMsgBeanById(String id) throws Exception;
	
	void removeSysMsgBeanById(String id) throws Exception;
	
	void removeSysMsgBeanByIds(String ids) throws Exception;
	
	SysMsgBean saveSysMsgBean(SysMsgBean crm) throws Exception;
	
	SysMsgBean updateSysMsgBean(SysMsgBean crm) throws Exception;
	
	Page<SysMsgBean>  findSysMsgBeanByCond(SysMsgBean bean,
			Page<SysMsgBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveSysMsgBeanExt(String sql) throws Exception;

	String findSysMsgBeanExtCreate(String tableName) throws Exception;

	String findSysMsgBeanExtEdit(String tableName, String id)
			throws Exception;

	String findSysMsgBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasSysMsgBeanExtData(String tableName, String id)
			throws Exception;
}